package dyyx.zb;

import java.util.Set;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import dyyx.util.CommUtil;
import dyyx.util.FastjsonUtil;

public class ZbInfoShow {
	
	
	public static void main(String[] args) throws Throwable{
		String file = "/Users/dugang/fun/worktools/2021/0308-xsyx/zbnew.txt";
		
		String str = CommUtil.read(file, "GBK");
	    JSONObject json = JSON.parseObject(str);
	    
	    System.out.println(json.size());
	    
	    System.out.println();
	    
        json = json.getJSONObject("data");
	    
	    System.out.println(json.size());
	    
	    Set<String> keys = json.keySet();
	    JSONObject zbjson = null;
	    
	    
	    for(String key:keys) {
	    	zbjson = json.getJSONObject(key);
	    	
	    }
	    System.out.println(FastjsonUtil.toString(zbjson, true));

	    
	    

	    
	}
	
	
}

